﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls
{
    /// <summary>
    /// 下拉框的数组内容为无和有
    /// </summary>
    public partial class CustomComJiZhuSiZhiCtrl : BaseDropDownCtrl
    {
        public CustomComJiZhuSiZhiCtrl()
        {
            InitializeComponent();
            InitialJiZhuiSiZhi();
            TextAlignment = TextAlignment.Left;
        }
        public TextAlignment TextAlignment
        {
            get { return _jzszCmp._txtName._txt.TextAlignment; }
            set { _jzszCmp._txtName._txt.TextAlignment = value; }
        }
        private void InitialJiZhuiSiZhi()
        {
            List<CommonComboboxItemModel> list = new List<CommonComboboxItemModel>()
            {
                   new CommonComboboxItemModel() { Behind="",Display=""},
                new CommonComboboxItemModel() { Behind="-1",Display="无特殊"},
                  new CommonComboboxItemModel() { Behind="脊柱侧弯",Display="脊柱侧弯"},
                 new CommonComboboxItemModel() { Behind="脊柱强直",Display="脊柱强直"},
                 new CommonComboboxItemModel() { Behind="肌力减退",Display="肌力减退"},
                 new CommonComboboxItemModel() { Behind="感觉障碍",Display="感觉障碍"},

            };
            this._jzszCmp.ItemsSource = list;

        }

    }
}
